import { DocumentBuilder } from "@nestjs/swagger";

export const SwaggerConfig=new DocumentBuilder()
    .setTitle('API 文档')
    .setDescription('基于 Fastify 的接口文档')
    .setVersion('1.0')
    .addBearerAuth()  // 启用 JWT 认证
    .addServer(`http://localhost:${process.env.PORT ?? 5000}`, '开发环境')
    .build();